
{extend name="public:common_index"/}
{block name="css"}
<style>
    .form-control {
        max-width: 350px;
    }

    .tb-name {
        width: 238px;
    }
    .error{
        color: red;
        margin-top: 10px;
        display: none;
    }
    .select{
        margin-bottom: 10px;
    }
    .doctor{
        display: none;
    }
</style>
{/block}
{block name="main"}
<section class="content">
    <div class="container-fluid">
        <div class="pull-right">
            <a href="javascript:history.go(-1)" data-toggle="tooltip" title="" class="btn btn-default"
               data-original-title="返回"><i class="fa fa-reply"></i></a>
            <a href="javascript:void(0);" class="btn btn-default"
               data-url="javascript:;"
               onclick="get_help(this)"><i class="fa fa-question-circle"></i> 帮助</a>
        </div>
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title"><i class="fa fa-list"></i> {$title}</h3>
            </div>
            <div class="panel-body">
                <!--表单数据-->
                <form action="" method="post" class="form-horizontal"
                      id="category_form">

                    <!--通用信息-->
                    <div class="tab-content">

                        <div class="tab-pane active" id="tab_tongyong">
                            <table class="table table-bordered">
                                <tbody>
                                <tr>
                                    <td style="width: 20%">申诉人:</td>
                                    <td><img style="max-width: 100px;display: block" src="{$data.protest.header_img}" alt="">
                                        <p style="font-size: 22px;font-weight: bold">{$data.protest.nick_name}</p>
                                    </td>
                                </tr>
                                <tr>
                                    <td>申诉人用户id/hash:</td>
                                    <td>
                                        {$data.protest.user_id}/{:hashid($data.protest.user_id)}
                                    </td>
                                </tr>
                                <tr>
                                    <td>申诉人用户uuid:</td>
                                    <td>
                                        {$data.protest.uuid}
                                    </td>
                                </tr>
                                <tr>
                                    <td>被申诉人:</td>
                                    <td><img style="max-width: 100px;display: block" src="{$data.user.header_img}" alt="">
                                        <p style="font-size: 22px;font-weight: bold">{$data.user.nick_name}</p>
                                    </td>
                                </tr>
                                <tr>
                                    <td>被申诉人用户id/hash:</td>
                                    <td>
                                        {$data.user.user_id}/{:hashid($data.user.user_id)}
                                    </td>
                                </tr>
                                <tr>
                                    <td>被申诉人用户uuid:</td>
                                    <td>
                                        {$data.user.uuid}
                                    </td>
                                </tr>
                                <tr>
                                    <td>邀约技能:</td>
                                    <td><img style="max-width: 100px;display: block" src="{$data.skill_img}" alt="">
                                        <p style="font-size: 22px;font-weight: bold">{$data.skill_name}</p>
                                    </td>
                                </tr>
                                <tr>
                                    <td>赠送礼物:</td>
                                    <td><img style="max-width: 100px;display: block" src="{$data.gift_img}" alt="">
                                        <p style="font-size: 22px;font-weight: bold">{$data.gift_name}</p>
                                    </td>
                                </tr>
                                <tr>
                                    <td>订单总金额:</td>
                                    <td style="color: red">{$data.price}</td>
                                </tr>
                                <tr>
                                    <td>邀约时间:</td>
                                    <td>{:formatTime($data.order_time,false)}</td>
                                </tr>
                                <tr>
                                    <td>邀约形式:</td>
                                    <td>{$data.form_name}</td>
                                </tr>
                                <tr>
                                    <td>邀约次数({$data.spec}):</td>
                                    <td>{$data.num}</td>
                                </tr>
                                <tr>
                                    <td>举报理由:</td>
                                    <td>
                                        {$data.reason}
                                    </td>
                                </tr>
                                <tr>
                                    <td>举报图片:</td>
                                    <td>
                                        <img src="{$data.reason_img}" style="max-width: 100px" alt="">
                                    </td>
                                </tr>
                                <tr>
                                    <td>处理意见:</td>
                                    <td>
                                        <textarea name="record_str" class="form-control"  cols="30" rows="10">{$data.record_str}</textarea>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="pull-right">
                        <label class="control-label col-sm-2"></label>
                        <input type="hidden" name="id" value="{$data.order_id}">
                        {if condition="$data.status == 9"}
                        <input type="hidden" class="is_pass" name="status" value="">
                        <input style="display: none" class="btn btn-primary submit"  type="submit" value="审核通过">
                        <button type="button" class="btn btn-success success">通过</button>
                        <button type="button" class="btn btn-danger danger">驳回</button>
                        {else /}
                        {if $data.record == 1}
                        <button type="button" class="btn btn-success">申诉已通过</button>
                        {elseif $data.record == 3}
                        <button type="button" class="btn btn-success">申诉已驳回</button>
                        {else/}
                        <button type="button" class="btn btn-success">申诉已处理</button>
                        {/if}
                        {/if}
                    </div>
                </form>
            </div>
        </div>
    </div>
</section>
{/block}
{block name="js"}
<script>
    $(function () {
        $('.success').click(function () {
            $('.is_pass').val(1);
            $('.submit').click();
        });
        $('.danger').click(function () {
            $('.is_pass').val(2);
            $('.submit').click();
        });
    })
</script>
{/block}